def trips(x):
    for row in range(x,0,-1): #行数
        for column_space in range(x-row): #补齐每行的空格数量
            print(' '*3,end="")
        for column_num in range(row, 0, -1): #打印每行数字，向右对齐，间隔2空格
            print(format(column_num, ">3"), end="")
        print() #换行

trips(12)


# 空格宽度没有做到统一
